<template>
    <ExportData
            round
            type="success"
            icon="el-icon-download"
            size="normal"
            export-url="/exportData"
            :query-params="queryParams"
            :loading="false"
            @handleExportSuccess="handleExportSuccess"
            @handleExportError="handleExportError"
    />
</template>

<script>

    import ExportData from "../components/ExportData";
    export default {
        name: "ExportTest",
        components: {
            ExportData
        },
        data() {
            return {
                queryParams: {
                    pageNum: 1,
                    pageSize: 10,
                    userName: 'alinesno',
                    deptId: '1'
                }
            }
        },
        methods: {
            handleExportSuccess(response) {
                console.log(response)
            },
            handleExportError(error) {
                console.log(error)
            },
        }
    }
</script>

<style scoped>

</style>